package com.design.blog.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

/**
 * @author hxg
 * @version 1.0
 * @date 2022/2/28 15:03
 */
@Data
public class BaseEntity {
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    @TableLogic
    @TableField(select = false)
    private String  isDeleted;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date  updateTime;

}
